package com.neu.service.ww;

import com.neu.dao.ww.OrderDao;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class OrederService {
    private OrderDao orderDao;
    public OrederService(){
        orderDao=new OrderDao();
    }

    public int doInsertOrder(String a_id,String u_id,String o_num,String o_price){
        int row=0;
        String date=LocalDate.now().toString();
        try {
            row=orderDao.insertOrder(a_id,u_id,o_num,o_price,date);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return row;
    }

}
